/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import javax.validation.constraints.NotNull;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 加班信息Entity
 * @author jyangye
 * @version 2018-01-14
 */
public class ViEmpOvertime extends DataEntity<ViEmpOvertime> {
	
	private static final long serialVersionUID = 1L;
	private String employeeId;		// 员工编号
	private Office comp;		// 组织机构
	private Office dept;		// 部门
	private Office post;		// 职位
	private String name;		// 姓名
	private String code;		// 身份证号
	private Integer year;		// 加班年份
	private Integer month;		// 加班月份
	private Double totalHours;		// 合计加班时长
	private Double totalDays;		// 合计加班天数
	private String isActive;		// 是否生效

    private String errMsg; // 错误信息
	
	public ViEmpOvertime() {
		super();
	}

	public ViEmpOvertime(String id){
		super(id);
	}

	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	public Office getComp() {
		return comp;
	}

	public void setComp(Office comp) {
		this.comp = comp;
	}
	
	@ExcelField(title="部门", align=2, type = 1, sort=40)
	public Office getDept() {
		return dept;
	}

	public void setDept(Office dept) {
		this.dept = dept;
	}
	
	@ExcelField(title="职位", align=2, type = 1, sort=50)
	public Office getPost() {
		return post;
	}

	public void setPost(Office post) {
		this.post = post;
	}
	
	@Length(min=1, max=32, message="姓名长度必须介于 1 和 32 之间")
	@ExcelField(title="姓名", align=2, sort=60)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=32, message="身份证号长度必须介于 1 和 32 之间")
	@ExcelField(title="身份证号", align=2, sort=70)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@ExcelField(title="加班年份", align=2, sort=80)
	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}
	
	@ExcelField(title="加班月份", align=2, sort=90)
	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}
	
	@ExcelField(title="合计加班时长", align=2, sort=100)
	public Double getTotalHours() {
		return totalHours;
	}

	public void setTotalHours(Double totalHours) {
		this.totalHours = totalHours;
	}
	
	@ExcelField(title="合计加班天数", align=2, sort=110)
	public Double getTotalDays() {
		return totalDays;
	}

	public void setTotalDays(Double totalDays) {
		this.totalDays = totalDays;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}


	@ExcelField(title = "错误信息", type = 2, align = 2, sort = 130)
    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}